<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>晒一晒手机里最舍不得删的照片</title>
    <meta name="description" content="你手机里最舍不得删掉的照片是什么？" />
    <link rel="stylesheet" href="/static/css/huati/sharephoto.css">
    <script src="/static/js/flexible.js"></script>
    <script src="/static/js/jquery.2.1.4.min.js"></script>
</head>
<body>
<script src="/static/js/common/Monitor.js"></script>
    <div class="contain">
        <div class="contain_top">
            <p>
                参与方式：发布 <span>#舍不得删掉的照片# </span>的话题即可参与<br>
                活动时间：12月6日—12月15日<br>
                活动奖励：<br>
                1.<span>最美时光奖</span>：每满100条话题，抽20条话题，赠送价值217花瓣的活动礼物“时光相册”（比如100条话题抽20条，200条话题再抽20条，以此类推）<br>
                <b>注：该礼物由官方赠送，只有参与话题的人才有机会获得哦；</b><br>
                2.<span>幸运奖</span>：活动结束后，随机抽取3名幸运参与者，奖励“花开定制公仔”；
            </p>
        </div>
        <div class="contain_bottom">
            <h1></h1>
            <div class="bottom_k">
                <div class="title">
                    <span style="width:1.2rem ">头像</span>
                    <span  style="width: 2rem;">昵称</span>
                    <span style="width: 1.3rem">奖品</span>
                    <span style="width: 1.7rem">时间</span>
                    <span style="width: 1.1rem">批次</span>
                </div>
                <div id="box">
                    <ul id="ul1">
                        <!--<li>-->
                            <!--<p class="head_pic"><img  src="http://huakai-api.oss-cn-shenzhen.aliyuncs.com/user_header/user_header_2468759_1542448518848.jpeg" alt=""></p>-->
                            <!--<b style="width: 2rem;">米朵</b>-->
                            <!--<p class="jiangpin"><img src="/static/img/huati/sharePhoto/jiangpin.png" alt=""></p>-->
                            <!--<b style="width: 1.7rem">2018.12.08</b>-->
                            <!--<b style="width: 1.1rem">第1批</b>-->
                        <!--</li>-->
                    </ul> <ul id="ul2"></ul>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(function () {
            fillList();
        })
        function fillList(){
            $.ajax({
                url: "namelist.json",
                type: "GET",
                dataType: "json",
                success: function(data) {
                    filldata(data)
                }
            });
        }
        function filldata(data){
          var str='';
          $.each(data, function(i, item) {
              str+="<li>";
              str+="<p class='head_pic'><img  src='"+item.head_pic+"' alt=''></p>" ;
              str+="<b style='width: 2rem;'>"+item.nick_name+"</b>" ;
              str+="<p class='jiangpin'><img src='/static/img/huati/sharePhoto/jiangpin.png' alt=''></p>" ;
              str+="<b style='width: 1.7rem'>"+item.time+"</b>" ;
              str+="<b style='width: 1.1rem'>"+item.batch+"</b>";
              str+="</li>"
          })
          $("#ul1").html(str);
          lunbo();
      }
        function lunbo() {
        var ul1sH=$("#ul1")[0].scrollHeight;
        var h=0;
        var ulH=$("#box").height();
        if(ul1sH>ulH){
            roll(20)
        }
        function roll(t){
            var ul1 = $("#ul1").html();
            $("#ul2").html(ul1);
            setInterval(rollStart,t)
        }
        function rollStart() {
            if (h >=ul1sH) {
                h=0;
                $("#box").scrollTop(h)
            } else {
                h++;
                $("#box").scrollTop(h)
            }
        }
    }

    </script>
</body>
</html>